package me.jessyan.armscomponent.app.mvp.ui.adapter;

import android.support.annotation.NonNull;
import android.view.View;

import com.jess.arms.base.BaseHolder;
import com.jess.arms.base.DefaultAdapter;

import java.util.List;

import me.jessyan.armscomponent.app.R;
import me.jessyan.armscomponent.app.mvp.ui.holder.LeftListHolder;
import me.jessyan.armscomponent.app.mvp.ui.holder.RightListHolder;
import me.jessyan.armscomponent.app.mvp.ui.model.LeftListBean;
import me.jessyan.armscomponent.app.mvp.ui.model.RightListBean;

public class RightListAdapter extends DefaultAdapter<RightListBean> {

    public RightListAdapter(List<RightListBean> infos) {
        super(infos);
    }

    public void setData(List<RightListBean> infos){
        this.mInfos = infos;
        notifyDataSetChanged();
    }

    @NonNull
    @Override
    public BaseHolder<RightListBean> getHolder(@NonNull View view, int i) {
        return new RightListHolder(view);
    }

    @Override
    public int getLayoutId(int i) {
        return R.layout.item_right_list;
    }
}
